import request from '@/utils/request'

export function list(tenantId) {
  return request({
    url: '/ss/sys/eduxcloudTagGroup/list',
    method: 'get',
    params: { tenantId }
  })
}

export function add(data) {
  return request({
    url: '/ss/sys/eduxcloudTagGroup/add',
    method: 'post',
    data: data
  })
}

export function deleteTagGroup(id) {
  return request({
    url: '/ss/sys/eduxcloudTagGroup/delete',
    method: 'get',
    params: {id}
  })
}

export function update(data) {
  return request({
    url: '/ss/sys/eduxcloudTagGroup/add',
    method: 'post',
    data: data
  })
}
